<!DOCTYPE html>
<html>
<#include "../head.html">
    <body class="full">
    <div class="mc">
        <div class="mc-l">
            <!--左侧导航---{-->
            <div id="navPanelContainer">
                <div class="system-logo cd"></div>
                <!--管理员信息---{-->
                <#include "../adminInfo.html">
                    <!--管理员信息---}-->
                    <div class="nav-wrap">
                        <#include "../userinfo/left.html">
                    </div>
            </div>
            <!--左侧导航---}-->
        </div>
        <div class="mc-m">
            <div class="navToggle"></div>
        </div>
        <div class="mc-r">
            <!--顶部导航---{-->
            <#include "../topNav.html">
                <!--顶部导航---}-->

                <!--面包屑导航---{-->
                <#assign moduleName="发送加息券">
                    <#include "../userinfo/banner.html">
                        <!--面包屑导航---}-->

                        <!--工具栏--{-->
                        <div id="toolbar" class="clearfix">

                        </div>
                        <!--工具栏--}-->

                        <div id="main" class="clearfix">
                            <form name="form1" method="post" action="/admin/coupon/sendCoupon.html" onsubmit="return checkForm();" autocomplete="off">
                                <div class="valBox w750">
                                    <div class="top">
                                        <strong>发送加息券</strong>
                                    </div>
                                    <div class="val clearfix">
                                        <ul>
                                            <li>
                                                <div class="title">用户主键：</div>
                                                <div class="v">
                                                    <input type="text" name="userId" id="userId"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">加息券比例：</div>
                                                <div class="v">
                                                    <input type="text" name="apr" id="apr"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">加息券天数：</div>
                                                <div class="v">
                                                    <input type="text" name="days" id="days"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">加息券类型：</div>
                                                <div class="v">
                                                    <input type="text" name="type" id="type"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">加息券有效期：</div>
                                                <div class="v">
                                                    <input type="text" name="validDays" id="validDays"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">投资金额区间：</div>
                                                <div class="v">
                                                    <input type="text" name="amountMin" id="amountMin" size="6"/>
                                                    —
                                                    <input type="text" name="amountMax" id="amountMax" size="7"/>
                                                </div>
                                            </li>
                                            <li>
                                                <div class="title">投资期限区间：</div>
                                                <div class="v">
                                                    <input type="text" name="timeMin" id="timeMin" size="6"/>
                                                    —
                                                    <input type="text" name="timeMax" id="timeMax" size="7"/>
                                                </div>
                                            </li>
                                        </ul>
                                        <div class="other">
                                            <input type="hidden"  name="actionType" value="send" />
                                            <input type="submit"  value="确认" class="input-button confirm" />
                                        </div>
                                    </div>
                                </div>

                            </form>

                        </div>
        </div>
    </div>
    <div class="mc-b"><#include "../foot.html"></div>
    <#include "../jsPage.html">
    <script>
    		function checkForm(){
    			var userId = $("#userId").val();
    			var apr = $("#apr").val();
    			var type = $("#type").val();
    			var validDays = $("#validDays").val();
    			if(userId == ""){
    				alert("用户主键不能为空！");
    				return false;
    			}
    			if(apr == ""){
    				alert("比例不能为空！");
    				return false;
    			}
    			if(type == ""){
    				alert("类型不能为空！");
    				return false;
    			}
    			if(validDays == ""){
    				alert("有效期限不能为空！");
    				return false;
    			}
    		}
    </script>

    </body>
</html>